<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of notesControllerClass
 *
 * @author nstevens
 */
include_once 'commonController.php';

class notesControllerClass extends commonController {

    public $model;

    public function __construct($model) {
        $this->model = $model;
    }

    /*
     * Called when processing existing notes (update notes, save grade or mark as complete)
     */
    public function processExistingNotesRequest() {
        $url = $this->model->processExistingNotes();
        if ($url) {
            echo header($url);
        } else {
            echo 'error';
        }
    }    

}

?>
